package com.atguigu.vodservice.serivce;

import org.springframework.web.multipart.MultipartFile;

import java.io.IOException;
import java.util.List;

/**
 * @title: VideoService
 * @Author danghailiang
 * @Date: 2022/9/30 1:04
 * @Version 1.0
 */
public interface VideoService {
    /**
     * 视屏上传服务
     * @param file 上传视屏
     * @return 视屏Id
     */
    String uploadAlyVideo(MultipartFile file) throws IOException;

    /**
     * 根据视屏凭据id删除视屏
     * @param videoSourceId 视屏Id
     */
    void delAlyVideoById(String videoSourceId);

    /**
     * 批量删除视屏
     * @param ids
     */
    void deleteBatch(List<String> ids);
}
